package com.rtp.transformer.parser;

/**
 * Simple usage Husband parse
 * @author xueming
 *
 */
public class FormatManage {	

	private static FormatManage fm;

	public static synchronized FormatManage getInstance() {
		if (fm == null)
			return new FormatManage();
		else
			return fm;
	}


	public TXTOutAndInStream getOutInStream(String className) {
		TXTOutAndInStream www = null;
		try {
			www = (TXTOutAndInStream) Class.forName(className).newInstance();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return www;
	}



}
